package com.tensquare.article.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description 文章表
 * @Date 2021/3/21 14:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_article")
@Builder
public class Article {
    //ID
    @TableId("id")
    private String id;

    //专栏ID
    @TableField("columnid")
    private String columnid;

    //用户ID
    @TableField("userid")
    private String userid;

    //文章标题
    @TableField("title")
    private String title;

    //文章内容
    @TableField("content")
    private String content;

    //文章封面
    @TableField("image")
    private String image;

    //发表日期
    @TableField("createtime")
    private Date createtime;

    //修改日期
    @TableField("updatetime")
    private Date updatetime;

    //是否公开
    @TableField("ispublic")
    private String ispublic;

    //是否置顶
    @TableField("istop")
    private String istop;

    //浏览量
    @TableField("visits")
    private String visits;

    //点赞数
    @TableField("thumbup")
    private String thumbup;

    //评论数
    @TableField("comment")
    private String comment;

    //审核状态
    @TableField("state")
    private String state;

    //所属频道
    @TableField("channelid")
    private String channelid;

    //URL地址
    @TableField("url")
    private String url;

    //文章类型
    @TableField("type")
    private String type;
}
